package com.wman.Mvc;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wman.R;

import androidx.annotation.Nullable;

/**
 * @ProjectName: wman
 * @Package: com.wman.Mvc
 * @ClassName: DataView
 * @Description: java类作用描述
 * @Author: wman
 * @CreateDate: 2019/11/11 14:22
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/11/11 14:22
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class DataView extends LinearLayout implements MvcActivity.IView {
    private TextView mTv1, mTv2;
    private Button mButton;

    public DataView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();

        mTv1 = findViewById(R.id.textView);
        mTv2 = findViewById(R.id.textView2);
        mButton = findViewById(R.id.button);
    }

    @Override
    public void showData(String str1, String str2) {
        mTv1.setText(str1);
        mTv2.setText(str2);
    }
}
